package day02;

/**
 * @author wangzhisen
 * @Desc TODO
 * @date 2025/4/8
 */
///将变量i和变量d相加再赋值给另一个short类型的变
///定义int类型的变量i,初始化值为5.再定义double类型的变量d ,初始化值为3.14.量s.输出s的值.
public class Test02 {
    public static void main(String[] args) {
        int i = 5;
        double d = 3.14;
        short s = (short)(i+d);
        System.out.println("s的值为"+s);
    }
}
